#include "board_hardware_config.h"
#include "app_procotol_sendcmd.h"
#include "app_procotol.h"
#include "version.h"

void proctol_send_readversion()
{
       unsigned int ret;
       unsigned char buffer[5]={0};
      buffer[0] = SOFTWAREVER;
	buffer[1] = m_date_year;
	buffer[2] = m_date_mouth;
	
       buffer[3] = m_date_day;
      
	procotol_txpacket(CMD_READVERSION,buffer,4);
}

void proctol_send_in_Iap()
{
       unsigned int ret;
       unsigned char buffer[4]={0};
      buffer[0] = 0x02;
	procotol_txpacket(CMD_IN_IAPMODE,buffer,1);
}

void proctol_send_testResult(unsigned char ack)
{
       unsigned int ret;
       unsigned char buffer[4]={0};
      buffer[0] = ack;
	procotol_txpacket(CMD_IN_IAPTEST,buffer,1);
}


